package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author nanyang
 */
public class PmsFirstAidDto {

    @Data
    @ApiModel("新增急救档案")
    public static class Insert {
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("姓名全拼")
        private String pinyinFull;
        @ApiModelProperty("姓名简拼")
        private String pinyinSimple;
        @ApiModelProperty("性别")
        private Byte sex;
        @ApiModelProperty("年龄")
        private Integer age;
        @ApiModelProperty("身份证")
        private String idCard;
        @ApiModelProperty("民族")
        private String nation;
        @ApiModelProperty("联系电话")
        private String phone;
        @ApiModelProperty("身高")
        private String height;
        @ApiModelProperty("体重")
        private String weight;
        @ApiModelProperty("bmi")
        private String bmi;
        @ApiModelProperty("更新标识：0第一次输入，1更新患者信息")
        private Byte status;
        @ApiModelProperty("数据来源")
        private Integer source;
        @ApiModelProperty("备注")
        private String remark;
        @ApiModelProperty("子表数据")
        private List<FirstAidRecordDto> recordDtoList;
    }

    @Data
    @ApiModel("修改急救档案")
    public static class Update {
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("姓名全拼")
        private String pinyinFull;
        @ApiModelProperty("姓名简拼")
        private String pinyinSimple;
        @ApiModelProperty("性别")
        private Byte sex;
        @ApiModelProperty("年龄")
        private Integer age;
        @ApiModelProperty("身份证")
        private String idCard;
        @ApiModelProperty("民族")
        private String nation;
        @ApiModelProperty("联系电话")
        private String phone;
        @ApiModelProperty("身高")
        private String height;
        @ApiModelProperty("体重")
        private String weight;
        @ApiModelProperty("bmi")
        private String bmi;
        @ApiModelProperty("更新标识：0第一次输入，1更新患者信息")
        private Byte status;
        @ApiModelProperty("数据来源")
        private Integer source;
        @ApiModelProperty("备注")
        private String remark;
        @ApiModelProperty("子表数据")
        private List<FirstAidRecordDto> recordDtoList;
    }

    @Data
    @ApiModel("删除急救档案")
    public static class Delete {
        @ApiModelProperty("删除ID")
        private List<Long> idList;
    }


    @Data
    @ApiModel("查询急救档案")
    public static class Query {
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("身份证")
        private String idCard;
        @ApiModelProperty("子表数据")
        private List<FirstAidRecordDto> recordDtoList;
    }


    @Data
    @ApiModel("急救档案子表")
    public static class FirstAidRecordDto {
        @ApiModelProperty("key")
        private String code;
        @ApiModelProperty("value")
        private String answer;
    }

}
